package com.example.hospitalmanagement.http

import com.example.hospitalmanagement.bean.DepartmentListResult
import com.example.hospitalmanagement.bean.DepartmentResult
import com.example.hospitalmanagement.bean.ExpertIntroductionResult
import retrofit2.http.*
import rx.Observable

/**
 * 网络请求接口,返回JSON
 */
interface IHospitalRequest {
    /**
     * 科室一二级接口
     */
    @POST("depSys/findDepsysDeskwork")
    fun requestDepartment(): Observable<DepartmentResult>

    /**
     * 科室查询
     */
    @GET("depSys/findDepsysDeskwork")
    fun requestDepartmentByName(@Query("searchName") searchName:String):Observable<DepartmentResult>
    /**
     * 专家介绍-科室列表
     */
    @GET("deskWork/findAllDeskWork")
    fun getDepartmentList():Observable<DepartmentListResult>
    /**
     * 专家介绍
     */
    @GET("doctor/findDoctorByDeskIdAndName")
    fun expertIntroduction(@QueryMap map: MutableMap<String,String>,@QueryMap deskWork:MutableMap<String,Array<Int>>):Observable<ExpertIntroductionResult>
}